<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_content
 *
 * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
$lang = JRequest::getVar('lang','');
defined('_JEXEC') or die;$db = & JFactory::getDBO();
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
$Itemid = JRequest::getVar('Itemid','101');
// Create shortcuts to some parameters.
$params  = $this->item->params;
$images  = json_decode($this->item->images);
$urls    = json_decode($this->item->urls);
$canEdit = $params->get('access-edit');
$user    = JFactory::getUser();
$info    = $params->get('info_block_position', 0);
JHtml::_('behavior.caption');
$useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date')
	|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author'));
	
$cateimage = $this->item->metadata;
$cateimage = explode('xreference":"',$cateimage);
$cateimage = explode('"',$cateimage[1]);
$cateimage = $cateimage[0];
if($cateimage!=""){
	$queryroom = 'SELECT * FROM #__banners WHERE catid='.$cateimage.' and state=1 order by ordering ASC';					
	$db->setQuery( $queryroom );
	$imgslideroom = $db->loadObjectList();
}
if($Itemid==128 || $Itemid==123 || $Itemid==112 || $Itemid==115){
?>
<div class="item-page roomtemplate">
	<?php if ($this->params->get('show_page_heading', 1)) : ?>
	<div class="page_header catroom">
		<h2><strong> <?php echo $this->escape($this->params->get('page_heading')); ?> </strong></h2>
	</div>
	<?php endif;?>
    <div id="roomtemplatestyle" class="roomtemplate galleryimgdetail">
    	<?php if ($params->get('show_title')) : ?>
        <div class="page-header">
            <h1><strong>
                <?php if ($params->get('show_title')) : ?>
                    <?php echo $this->escape($this->item->title); ?>
                <?php endif; ?></strong>

            </h1>
        </div>
        <?php endif; ?>

        <div class="contentarticle">
			<?php
            if(count($imgslideroom)>=1){
            ?>
			<div class="imgcategory">
                <script>
                jQuery(function() {
                  jQuery('#galleryrooms<?php echo $cateimage;?>').slidesjs({
                    width: 300,
                    height: 190
                  });
                });
                </script>
                <div id="galleryrooms<?php echo $cateimage;?>" class="galleryroomsdetail">
                    <?php
                    for($i=0;$i<count($imgslideroom);$i++){
                        $imgroom = $imgslideroom[$i]->params;
                        $imgroom = explode('imageurl":"',$imgroom);
                        $imgroom = explode('","',$imgroom[1]);
                        $imgroom = str_replace('\/','/',$imgroom[0]);
                    ?>
                    <ul class="galleryarticle<?php echo $this->item->id;?>" id="olympGallery">
                        <li><img alt="<?php echo $this->escape($this->item->title); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->item->title); ?>" src="<?php echo $imgroom; ?>" /></li>
                    </ul>
                    <?php
                    }
                    ?>
                </div>
            </div>
            <?php
            }
            else{
            ?>
                <?php if (isset($images->image_intro) && !empty($images->image_intro)) :?>
                    <p class="imgintro" align="center"><img alt="<?php echo $this->escape($this->item->title); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->item->title); ?>" src="<?php echo $images->image_intro; ?>" /></p>
                <?php endif; ?>
            <?php 
            }
            ?>
            <?php echo $this->item->introtext.$this->item->fulltext;?>
        </div>
    </div>
    <div class="rightcolumnroom restaurantsmodule">
		<?php
		$document = &JFactory::getDocument();
		$renderer   = $document->loadRenderer('modules');
		$position   = 'hotelinfo';
		$options   = array('style' => 'well');
		echo $renderer->render($position, $options, null);
		?>
		<?php
		$document = &JFactory::getDocument();
		$renderer   = $document->loadRenderer('modules');
		$position   = 'offersinfo';
		$options   = array('style' => 'well');
		echo $renderer->render($position, $options, null);
		?>
    </div>
</div>
<?php
}
else if($Itemid==113){
?>
<div class="item-page roomtemplate">
	<?php if ($this->params->get('show_page_heading', 1)) : ?>
	<div class="page_header catroom">
		<h2><strong> <?php echo $this->escape($this->params->get('page_heading')); ?></strong> </h2>
	</div>
	<?php endif;?>
    <div id="roomtemplatestyle" class="roomtemplate">
    	<?php if ($params->get('show_title')) : ?>
        <div class="page-header">
            <h1><strong>
                <?php if ($params->get('show_title')) : ?>
                    <?php echo $this->escape($this->item->title); ?>
                <?php endif; ?></strong>
            </h1>
        </div>
        <?php endif; ?>
        <div class="contentarticle">
						<?php
            if(count($imgslideroom)>=1){
            ?>
			<div class="imgcategory">
                <script>
                jQuery(function() {
                  jQuery('#galleryrooms<?php echo $cateimage;?>').slidesjs({
                    width: 300,
                    height: 190
                  });
                });
                </script>
                <div id="galleryrooms<?php echo $cateimage;?>" class="galleryroomsdetail">
                    <?php
                    for($i=0;$i<count($imgslideroom);$i++){
                        $imgroom = $imgslideroom[$i]->params;
                        $imgroom = explode('imageurl":"',$imgroom);
                        $imgroom = explode('","',$imgroom[1]);
                        $imgroom = str_replace('\/','/',$imgroom[0]);
                    ?>
                    <ul class="galleryarticle<?php echo $this->item->id;?>" id="olympGallery">
                        <li><img alt="<?php echo $this->escape($this->item->title); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->item->title); ?>" src="<?php echo $imgroom; ?>" /></li>
                    </ul>
                    <?php
                    }
                    ?>
                </div>
            </div>
			<?php
            }
            else{
            ?>
                <?php if (isset($images->image_intro) && !empty($images->image_intro)) :?>
                    <p class="imgintro" align="center"><img alt="<?php echo $this->escape($this->item->title); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->item->title); ?>" src="<?php echo $images->image_intro; ?>" /></p>
                <?php endif; ?>
            <?php 
            }
            ?>
            <?php echo $this->item->introtext.$this->item->fulltext;?>
        </div>
    </div>
    <div class="rightcolumnroom restaurantsmodule">
		<?php
		$document = &JFactory::getDocument();
		$renderer   = $document->loadRenderer('modules');
		$position   = 'hotelinfo';
		$options   = array('style' => 'well');
		echo $renderer->render($position, $options, null);
		?>
		<?php
		$document = &JFactory::getDocument();
		$renderer   = $document->loadRenderer('modules');
		$position   = 'offersinfo';
		$options   = array('style' => 'well');
		echo $renderer->render($position, $options, null);
		?>
    </div>
</div>
<?php
}
else if($Itemid==118 || $Itemid==130 || $Itemid==124 || $Itemid==133 || $Itemid==140 || $Itemid==141){
?>
<div class="item-page roomtemplate">
	<?php if ($this->params->get('show_page_heading', 1)) : ?>
	<div class="page_header catroom">
		<h2><strong> <?php echo $this->escape($this->params->get('page_heading')); ?> </strong></h2>

	</div>
	<?php endif;?>
    <div id="roomtemplatestyle" class="roomtemplate">
    	<?php if ($params->get('show_title')) : ?>
        <div class="page-header">
            <h1><strong>
                <?php if ($params->get('show_title')) : ?>
                    <?php echo $this->escape($this->item->title); ?>
                <?php endif; ?></strong>
            </h1>
            <?php $metadata = json_decode($this->item->metadata); ?>
            <i class="offer-outlename"><?php echo $metadata->metakey_outlet != '' ? JText::_('WMC_OUTLET_'.$metadata->metakey_outlet,'') : ''; ?></i>
           
            <div class="available_from_to">
                <?php if($this->item->publish_down != '0000-00-00 00:00:00') {            
                    $lang_code = JFactory::getLanguage()->getTag();
                    $publish_up = $lang_code == 'vi-VN' ? date("d/m/Y",strtotime($this->item->publish_up)) : date("M d, Y",strtotime($this->item->publish_up));
                    $publish_down = $lang_code == 'vi-VN' ? date("d/m/Y",strtotime($this->item->publish_down)) : date("M d, Y",strtotime($this->item->publish_down));  
                    echo JText::_('AVAILABLE_OFFER').' '.$publish_up.' '.JText::_('AVAILABLE_OFFER_TO').' '.$publish_down;
                }else{
                    $lang_code = JFactory::getLanguage()->getTag();
                    $publish_up = $lang_code == 'vi-VN' ? date("d/m/Y",strtotime($this->item->publish_up)) : date("M d, Y",strtotime($this->item->publish_up));
                    echo JText::_('AVAILABLE_OFFER').' '.$publish_up;
                } ?>
            </div>
          
            <span class="title_expired"><?php echo $this->item->expired; ?></span>
        </div>
        <?php endif; ?>
        <div class="contentarticle">
						<?php
            if(count($imgslideroom)>=1){
            ?>
			<div class="imgcategory">
                <script>
                jQuery(function() {
                  jQuery('#galleryrooms<?php echo $cateimage;?>').slidesjs({
                    width: 300,
                    height: 190
                  });
                });
                </script>
                <div id="galleryrooms<?php echo $cateimage;?>" class="galleryroomsdetail">
                    <?php
                    for($i=0;$i<count($imgslideroom);$i++){
                        $imgroom = $imgslideroom[$i]->params;
                        $imgroom = explode('imageurl":"',$imgroom);
                        $imgroom = explode('","',$imgroom[1]);
                        $imgroom = str_replace('\/','/',$imgroom[0]);
                    ?>
                    <ul class="galleryarticle<?php echo $this->item->id;?>" id="olympGallery">
                        <li><img alt="<?php echo $this->escape($this->item->title); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->item->title); ?>" src="<?php echo $imgroom; ?>" /></li>
                    </ul>
                    <?php
                    }
                    ?>
                </div>
            </div>
			<?php
            }
            else{
            ?>
                <?php if (isset($images->image_intro) && !empty($images->image_intro)) :?>
                <?php
                if($this->item->id==70 && ($lang=="vn" || $lang=="vi-VN")){
					$imagewedding = str_replace('.jpg','_vi.jpg',$images->image_intro);
				?>
                    <p class="imgintro" align="center"><img alt="<?php echo $this->escape($this->item->title); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->item->title); ?>" src="<?php echo $imagewedding; ?>" /></p>
                <?php }else if($this->item->id==72){?>
                    <p class="imgintro" align="center"><a target="_blank" href="<?php echo $images->image_intro; ?>"><img alt="<?php echo $this->escape($this->item->title); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->item->title); ?>" src="<?php echo $images->image_intro; ?>" /></a></p>
                <?php
				}
				else{?>
                    <p class="imgintro" align="center"><img alt="<?php echo $this->escape($this->item->title); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->item->title); ?>" src="<?php echo $images->image_intro; ?>" /></p>
                <?php
				}
				endif; ?>
            <?php 
            }
            ?>
            <?php echo $this->item->introtext.$this->item->fulltext;?>
        </div>
    </div>
    <div class="rightcolumnroom restaurantsmodule">
		<?php
		$document = &JFactory::getDocument();
		$renderer   = $document->loadRenderer('modules');
		$position   = 'hotelinfo';
		$options   = array('style' => 'well');
		echo $renderer->render($position, $options, null);
		?>
		<?php
		$document = &JFactory::getDocument();
		$renderer   = $document->loadRenderer('modules');
		$position   = 'offersinfo';
		$options   = array('style' => 'well');
		echo $renderer->render($position, $options, null);
		?>
    </div>
</div>
<?php
}
else if($Itemid==116 || $Itemid==117){
?>
<div class="item-page roomtemplate">
	<?php if ($this->params->get('show_page_heading', 1)) : ?>
	<div class="page_header catroom">
		<h2><strong> <?php echo $this->escape($this->params->get('page_heading')); ?></strong> </h2>
	</div>
	<?php endif;?>
    <div id="roomtemplatestyle" class="roomtemplate">
    	<?php if ($params->get('show_title')) : ?>
        <div class="page-header">
            <h2><strong>
                <?php if ($params->get('show_title')) : ?>
                    <?php echo $this->escape($this->item->title); ?>
                <?php endif; ?></strong>
            </h2>
        </div>
        <?php endif; ?>
        <div class="contentarticle">
						<?php
            if(count($imgslideroom)>=1){
            ?>
			<div class="imgcategory">
                <script>
                jQuery(function() {
                  jQuery('#galleryrooms<?php echo $cateimage;?>').slidesjs({
                    width: 300,
                    height: 190
                  });
                });
                </script>
                <div id="galleryrooms<?php echo $cateimage;?>" class="galleryroomsdetail">
                    <?php
                    for($i=0;$i<count($imgslideroom);$i++){
                        $imgroom = $imgslideroom[$i]->params;
                        $imgroom = explode('imageurl":"',$imgroom);
                        $imgroom = explode('","',$imgroom[1]);
                        $imgroom = str_replace('\/','/',$imgroom[0]);
                    ?>
                    <ul class="galleryarticle<?php echo $this->item->id;?>" id="olympGallery">
                        <li><img alt="<?php echo $this->escape($this->item->title); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->item->title); ?>" src="<?php echo $imgroom; ?>" /></li>
                    </ul>
                    <?php
                    }
                    ?>
                </div>
            </div>
			<?php
            }
            else{
            ?>
                <?php if (isset($images->image_intro) && !empty($images->image_intro)) :?>
                    <p class="imgintro" align="center"><img alt="<?php echo $this->escape($this->item->title); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->item->title); ?>" src="<?php echo $images->image_intro; ?>" /></p>
                <?php endif; ?>
            <?php 
            }
            ?>
            <?php echo $this->item->introtext.$this->item->fulltext;?>
        </div>
    </div>
    <div class="rightcolumnroom restaurantsmodule">
		<?php
		$document = &JFactory::getDocument();
		$renderer   = $document->loadRenderer('modules');
		$position   = 'hotelinfo';
		$options   = array('style' => 'well');
		echo $renderer->render($position, $options, null);
		?>
		<?php
		$document = &JFactory::getDocument();
		$renderer   = $document->loadRenderer('modules');
		$position   = 'offersinfo';
		$options   = array('style' => 'well');
		echo $renderer->render($position, $options, null);
		?>
    </div>
</div>
<?php
}
else if($Itemid==114){
?>
<div class="item-page roomtemplate">
	<?php if ($this->params->get('show_page_heading', 1)) : ?>
	<div class="page_header catroom">
		<h2><strong> <?php echo $this->escape($this->params->get('page_heading')); ?></strong> </h2>
	</div>
	<?php endif;?>
    
    <div class="topmeetingevent" style="display:none;">
        <?php
        $document = &JFactory::getDocument();
        $renderer   = $document->loadRenderer('modules');
        $position   = 'position-14';
        $options   = array('style' => 'well');
        echo $renderer->render($position, $options, null);
        ?>
    </div>
    <div id="roomtemplatestyle" class="roomtemplate">
    	<?php if ($params->get('show_title')) : ?>
        <div class="page-header">
            <h1><strong>
                <?php if ($params->get('show_title')) : ?>
                    <?php echo $this->escape($this->item->title); ?>
                <?php endif; ?></strong>
            </h1>
        </div>
        <?php endif; ?>
        <div class="contentarticle">
						<?php
            if(count($imgslideroom)>=1){
            ?>
			<div class="imgcategory">
                <script>
                jQuery(function() {
                  jQuery('#galleryrooms<?php echo $cateimage;?>').slidesjs({
                    width: 300,
                    height: 190
                  });
                });
                </script>
                <div id="galleryrooms<?php echo $cateimage;?>" class="galleryroomsdetail">
                    <?php
                    for($i=0;$i<count($imgslideroom);$i++){
                        $imgroom = $imgslideroom[$i]->params;
                        $imgroom = explode('imageurl":"',$imgroom);
                        $imgroom = explode('","',$imgroom[1]);
                        $imgroom = str_replace('\/','/',$imgroom[0]);
                    ?>
                    <ul class="galleryarticle<?php echo $this->item->id;?>" id="olympGallery">
                        <li><img alt="<?php echo $this->escape($this->item->title); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->item->title); ?>" src="<?php echo $imgroom; ?>" /></li>
                    </ul>
                    <?php
                    }
                    ?>
                </div>
            </div>
			<?php
            }
            else{
            ?>
                <?php if (isset($images->image_intro) && !empty($images->image_intro)) :?>
                    <p class="imgintro" align="center"><img alt="<?php echo $this->escape($this->item->title); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->item->title); ?>" src="<?php echo $images->image_intro; ?>" /></p>
                <?php endif; ?>
            <?php 
            }
            ?>
            <?php echo $this->item->introtext.$this->item->fulltext;?>
		</div>
    </div>
    <div class="rightcolumnroom restaurantsmodule">
		<?php
		$document = &JFactory::getDocument();
		$renderer   = $document->loadRenderer('modules');
		$position   = 'hotelinfo';
		$options   = array('style' => 'well');
		echo $renderer->render($position, $options, null);
		?>
		<?php
		$document = &JFactory::getDocument();
		$renderer   = $document->loadRenderer('modules');
		$position   = 'offersinfo';
		$options   = array('style' => 'well');
		echo $renderer->render($position, $options, null);
		?>
    </div>
</div>
<?php
}
else if($Itemid==138){
?>
<div class="item-page roomtemplate">
	<?php if ($this->params->get('show_page_heading', 1)) : ?>
	<div class="page_header catroom">
		<h2><strong> <?php echo $this->escape($this->params->get('page_heading')); ?></strong> </h2>
	</div>
	<?php endif;?>
    <div class="sitemappage">
        <div class="page_header sitemap"><h2><strong><?php echo JText::_('Main Menu');?></strong></h2></div>
        <ul class="xmapmenumain level0">
    <?php
        $querymainmenu = 'SELECT * FROM #__menu WHERE menutype="mainmenu" and published=1 and parent_id=1';					
        $db->setQuery( $querymainmenu );
        $mainmenu = $db->loadObjectList();
        for($i=0;$i<count($mainmenu);$i++){
            echo '<li><a href="'.$mainmenu[$i]->link.'">';
            echo $mainmenu[$i]->title;
            echo '</a></li>';
        }
    ?>
        </ul>
        <div class="page_header sitemap"><h2><strong><?php echo JText::_('Link Top');?></strong></h2></div>
        <ul class="xmapmenulinktop level0">
    <?php
        $querylinktop = 'SELECT * FROM #__menu WHERE menutype="link-top" and published=1 and parent_id=1';					
        $db->setQuery( $querylinktop );
        $linktop = $db->loadObjectList();
        for($i=0;$i<count($linktop);$i++){
            echo '<li><a href="'.$linktop[$i]->link.'">';
            echo $linktop[$i]->title;
            echo '</a></li>';
        }
    ?>
        </ul>
        <div class="page_header sitemap"><h2><strong><?php echo JText::_('Menu Bottom');?></strong></h2></div>
        <ul class="xmapmenubottom level0">
    <?php
        $querybottom = 'SELECT * FROM #__menu WHERE menutype="bottom-menu" and published=1 and parent_id=1';					
        $db->setQuery( $querybottom );
        $bottom = $db->loadObjectList();
        for($i=0;$i<count($bottom);$i++){
            echo '<li><a href="'.$bottom[$i]->link.'">';
            echo $bottom[$i]->title;
            echo '</a></li>';
        }
    ?>
        </ul>
    </div>
</div>
<?php
}
else if($Itemid==144){
?>
<div class="item-page roomtemplate">
	<?php if ($this->params->get('show_page_heading', 1)) : ?>
	<div class="page_header catroom">
		<h2><strong> <?php echo $this->escape($this->params->get('page_heading')); ?></strong> </h2>
	</div>
	<?php endif;?>
    <div class="contentarticle about">
    	<?php echo $this->item->introtext.$this->item->fulltext;?>       
        <div class="sitemappage">
            <div class="page_header sitemap"><h2><strong><?php echo JText::_('Main Menu');?></strong></h2></div>
            <ul class="xmapmenumain level0">
        <?php
            $querymainmenu = 'SELECT * FROM #__menu WHERE menutype="mainmenu" and published=1 and parent_id=1';					
            $db->setQuery( $querymainmenu );
            $mainmenu = $db->loadObjectList();
            for($i=0;$i<count($mainmenu);$i++){
                echo '<li><a href="'.$mainmenu[$i]->link.'">';
                echo $mainmenu[$i]->title;
                echo '</a></li>';
            }
        ?>
            </ul>
            <div class="page_header sitemap"><h2><strong><?php echo JText::_('Link Top');?></strong></h2></div>
            <ul class="xmapmenulinktop level0">
        <?php
            $querylinktop = 'SELECT * FROM #__menu WHERE menutype="link-top" and published=1 and parent_id=1';					
            $db->setQuery( $querylinktop );
            $linktop = $db->loadObjectList();
            for($i=0;$i<count($linktop);$i++){
                echo '<li><a href="'.$linktop[$i]->link.'">';
                echo $linktop[$i]->title;
                echo '</a></li>';
            }
        ?>
            </ul>
            <div class="page_header sitemap"><h2><strong><?php echo JText::_('Menu Bottom');?></strong></h2></div>
            <ul class="xmapmenubottom level0">
        <?php
            $querybottom = 'SELECT * FROM #__menu WHERE menutype="bottom-menu" and published=1 and parent_id=1';					
            $db->setQuery( $querybottom );
            $bottom = $db->loadObjectList();
            for($i=0;$i<count($bottom);$i++){
                echo '<li><a href="'.$bottom[$i]->link.'">';
                echo $bottom[$i]->title;
                echo '</a></li>';
            }
        ?>
            </ul>
        </div>
    </div>
    <div class="rightcolumnroom restaurantsmodule">
		<?php
		$document = &JFactory::getDocument();
		$renderer   = $document->loadRenderer('modules');
		$position   = 'hotelinfo';
		$options   = array('style' => 'well');
		echo $renderer->render($position, $options, null);
		?>
		<?php
		$document = &JFactory::getDocument();
		$renderer   = $document->loadRenderer('modules');
		$position   = 'offersinfo';
		$options   = array('style' => 'well');
		echo $renderer->render($position, $options, null);
		?>
    </div>
</div>
<?php
}
else if($Itemid==109){
?>
<div class="item-page roomtemplate">
	<?php if ($this->params->get('show_page_heading', 1)) : ?>
	<div class="page_header catroom">
		<h2><strong> <?php echo $this->escape($this->params->get('page_heading')); ?></strong> </h2>
	</div>
	<?php endif;?>
    <div id="roomtemplatestyle" class="roomtemplate">
    	<?php if ($params->get('show_title')) : ?>
        <div class="page-header">
            <h1><strong>
                <?php if ($params->get('show_title')) : ?>
                    <?php echo $this->escape($this->item->title); ?>
                <?php endif; ?></strong>
            </h1>
        </div>
        <?php endif; ?>
        <div class="contentarticle newspage">
            <i><?php $datepublishup = strtotime($this->item->publish_up);echo date("F d, Y",$datepublishup);?></i>
        	<?php
            if(count($imgslideroom)>=1){
            ?>
			<div class="imgcategory">
                <script>
                jQuery(function() {
                  jQuery('#galleryrooms<?php echo $cateimage;?>').slidesjs({
                    width: 300,
                    height: 190
                  });
                });
                </script>
                <div id="galleryrooms<?php echo $cateimage;?>" class="galleryroomsdetail">
                    <?php
                    for($i=0;$i<count($imgslideroom);$i++){
                        $imgroom = $imgslideroom[$i]->params;
                        $imgroom = explode('imageurl":"',$imgroom);
                        $imgroom = explode('","',$imgroom[1]);
                        $imgroom = str_replace('\/','/',$imgroom[0]);
                    ?>
                    <ul class="galleryarticle<?php echo $this->item->id;?>" id="olympGallery">
                        <li>
                        <?php if($this->item->id==69){?>
						<a target="_blank" href="http://issuu.com/wmcgroup/docs/wmc_aspire_-_q2_2014?e=12049362/7942170">
						<?php }?>
                        <img alt="<?php echo $this->escape($this->item->title); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->item->title); ?>" src="<?php echo $imgroom; ?>" />
                        <?php if($this->item->id==69){?>
						</a>
						<?php }?>
                        </li>
                    </ul>
                    <?php
                    }
                    ?>
                </div>
            </div>
			<?php
            }
			else{
			?>
            <div class="imgcategory" style="text-align:center;margin-bottom:10px;">
				<?php 
				$itemimg = $this->item->images;
				$itemimg = explode('"image_intro":"',$itemimg);
				$itemimg = explode('","',$itemimg[1]);
				$itemimg = str_replace('\/','/',$itemimg[0]);
				if($this->item->id==69){?>
                <a target="_blank" href="http://issuu.com/wmcgroup/docs/wmc_aspire_-_q2_2014?e=12049362/7942170">
                <?php }?>
                    <img alt="<?php echo $this->escape($this->item->title); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->item->title); ?>" src="<?php echo $itemimg;?>"  />
                <?php if($this->item->id==69){?>
                </a>
                <?php }?>
            </div>
            <?php	
			}
            ?>
            <?php echo $this->item->introtext.$this->item->fulltext;?>
        </div>
        <div id="share" class="date_socialmedia">
            <span class="socialmedia"><?php echo JText::_('Share');?>
            <ul>
            <li>
            <a href="https://www.facebook.com/sharer.php?url=<?php echo 'http://windsorplazahotel.com'.$_SERVER['REQUEST_URI'];?>" target="_blank">
                <img alt="Facebook Windsor Plaza Hotel | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" onmouseover="this.src='images/headers/facebook_h.png'" onmouseout="this.src='images/headers/facebook.png'" src="images/headers/facebook.png" alt="Facebook">
            </a></li><li> 
            <a href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo 'http://windsorplazahotel.com'.$_SERVER['REQUEST_URI'];?>" target="_blank">
               <img alt="Linkedin Windsor Plaza Hotel | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" onmouseover="this.src='images/headers/linkedin_h.png'" onmouseout="this.src='images/headers/linkedin.png'" src="images/headers/linkedin.png" alt="Linked in">
            </a></li><li> 
            <a href="https://plus.google.com/share?url=<?php echo 'http://windsorplazahotel.com'.$_SERVER['REQUEST_URI'];?>" target="_blank">
                <img alt="Google+ Windsor Plaza Hotel | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" onmouseover="this.src='images/headers/google_h.png'" onmouseout="this.src='images/headers/google.png'" src="images/headers/google.png" alt="Google plus">
            </a></li><li> 
            <a href="http://twitter.com/intent/tweet?url=<?php echo 'http://windsorplazahotel.com'.$_SERVER['REQUEST_URI'];?>&text=<?php echo $this->escape($this->item->title);?>" target="_blank">
                <img alt="Twitter Windsor Plaza Hotel | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" onmouseover="this.src='images/headers/twitter_h.png'" onmouseout="this.src='images/headers/twitter.png'" src="images/headers/twitter.png" alt="Twitter">
            </a></li><li> 
            <a href="index.php?option=com_mailto&tmpl=component&link=<?php echo 'http://windsorplazahotel.com'.$_SERVER['REQUEST_URI'];?>" onclick="window.open(this.href,'win2','width=600,height=550,menubar=yes,resizable=yes'); return false;">
                <img alt="Mail Windsor Plaza Hotel | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" onmouseover="this.src='images/headers/sendmail_h.png'" onmouseout="this.src='images/headers/sendmail.png'" src="images/headers/sendmail.png" alt="Send email">
            </a></li></ul></span>
        </div>
    </div>
    <div class="rightcolumnroom restaurantsmodule">
		<?php
		$document = &JFactory::getDocument();
		$renderer   = $document->loadRenderer('modules');
		$position   = 'newsinfo';
		$options   = array('style' => 'well');
		echo $renderer->render($position, $options, null);
		?>
		<?php
        $document = &JFactory::getDocument();
        $renderer   = $document->loadRenderer('modules');
        $position   = 'offersinfo';
        $options   = array('style' => 'well');
        echo $renderer->render($position, $options, null);
        ?>
    </div>
</div>
<?php
}
else if($this->item->id==55){
	$wordfind = $_POST['yearnewsofinput'];
	$db = & JFactory::getDBO();
	$sqlcatyear="SELECT * from #__content where catid='8' and publish_up like '%$wordfind%' and state=1 order by id desc";
	$db->setQuery($sqlcatyear);
	$rowcatyears = $db->loadObjectList();
?>
<div class="blog">
    <div class="page_header catroom">
        <h1><strong><?php echo $this->escape($this->item->title); ?></strong></h1>
    </div>
    <div class="items-leading clearfix restaurants newspage">
        <?php
        for($i=0;$i<count($rowcatyears);$i++){
        ?>
        <div class="roomtemplateitem">
			<?php
            $imgintro = $rowcatyears[$i]->images;
			$imgintro = explode('image_intro":"',$imgintro);
			$imgintro = explode('","',$imgintro[1]);
			$imgintro = str_replace('\/','/',$imgintro[0]);
            ?>
            <div class="imgcategory">
            <?php if($this->item->id==69){?>
            <a target="_blank" href="http://issuu.com/wmcgroup/docs/wmc_aspire_-_q2_2014?e=12049362/7942170">
            <?php }?>
				<img alt="<?php echo $this->escape($this->item->title); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->item->title); ?>" src="<?php echo $imgintro;?>"  />
			<?php if($this->item->id==69){?>
            </a>
            <?php }?>
            </div>
            <div class="introcategory">
                <div class="page-header">
                    <h2><strong><a href="index.php?option=com_content&view=article&id=<?php echo $rowcatyears[$i]->id?>&catid=<?php echo $rowcatyears[$i]->catid?>&Itemid=109"><?php echo $rowcatyears[$i]->title; ?></a></strong></h2>
                </div>
                <div class="datepublish">
                    <?php
                    $datepublishup = strtotime($rowcatyears[$i]->publish_up);
                    echo date("F d, Y",$datepublishup);
                    ?>
                </div>
                <div class="contentarticle">
				<?php
                if(count($imgslideroom)>=1){
                ?>
				<div class="imgcategory">
                    <script>
                    jQuery(function() {
                      jQuery('#galleryrooms<?php echo $cateimage;?>').slidesjs({
                        width: 300,
                        height: 190
                      });
                    });
                    </script>
                    <div id="galleryrooms<?php echo $cateimage;?>" class="galleryroomsdetail">
                        <?php
                        for($i=0;$i<count($imgslideroom);$i++){
                            $imgroom = $imgslideroom[$i]->params;
                            $imgroom = explode('imageurl":"',$imgroom);
                            $imgroom = explode('","',$imgroom[1]);
                            $imgroom = str_replace('\/','/',$imgroom[0]);
                        ?>
                        <ul class="galleryarticle<?php echo $this->item->id;?>" id="olympGallery">
                            <li><img alt="<?php echo $rowcatyears[$i]->title; ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $rowcatyears[$i]->title; ?>" src="<?php echo $imgroom; ?>" /></li>
                        </ul>
                        <?php
                        }
                        ?>
                    </div>
                </div>
				<?php
                }
                else{
                ?>
                    <?php if (isset($images->image_intro) && !empty($images->image_intro)) :?>
                        <p class="imgintro" align="center"><img alt="<?php echo $rowcatyears[$i]->title; ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $rowcatyears[$i]->title; ?>" src="<?php echo $images->image_intro; ?>" /></p>
                    <?php endif; ?>
                <?php 
                }
                ?>
                <?php echo $this->item->introtext.$this->item->fulltext;?>
                </div>
            </div>
        </div>
        <?php
        }
        ?>
    </div>
    <div class="rightcolumnroom restaurantsmodule">
        <?php
        $document = &JFactory::getDocument();
        $renderer   = $document->loadRenderer('modules');
        $position   = 'newsinfo';
        $options   = array('style' => 'well');
        echo $renderer->render($position, $options, null);
        ?>
		<?php
        $document = &JFactory::getDocument();
        $renderer   = $document->loadRenderer('modules');
        $position   = 'offersinfo';
        $options   = array('style' => 'well');
        echo $renderer->render($position, $options, null);
        ?>
    </div>
</div>
<?php
}
else if($Itemid==131){
?>
<script src="templates/protostar/js/jquery-ui.js"></script>
<script>
jQuery(function() {
	var tabCounter = 2;
	var tabs = jQuery( "#tabs" ).tabs();
	tabs.bind( "keyup", function( event ) {
		if ( event.altKey && event.keyCode === jQuery.ui.keyCode.BACKSPACE ) {
			var panelId = tabs.find( ".ui-tabs-active" ).remove().attr( "aria-controls" );
			jQuery( "#" + panelId ).remove();
			tabs.tabs( "refresh" );
		}
	});
});
function formyearnews(yearnewsinput){
	var f=document.getElementById('yearnews');
	document.getElementById('yearnewsofinput').value = yearnewsinput;
	f.submit();
}
</script>
<div class="item-page roomtemplate">
    <?php if ($params->get('show_title')) : ?>
    <div class="page_header catroom">
        <h2><strong>
            <?php if ($params->get('show_title')) : ?>
                <?php echo $this->escape($this->item->title); ?>
            <?php endif; ?></strong>
        </h2>
    </div>
    <?php endif; ?>
    <div class="venuefindpage" style="display:none;">
        <?php
        $document = &JFactory::getDocument();
        $renderer   = $document->loadRenderer('modules');
        $position   = 'position-13';
        $options   = array('style' => 'well');
        echo $renderer->render($position, $options, null);
        ?>
    </div>
    <div class="contentarticle meettingevents">
	<?php
    	$numberaa = $_GET['numberaa'];
		$findnumber = '"xreference":"'.$numberaa.'"';
		$sel_venue= $_GET['sel_venue'];
		$sqlfindvenue="SELECT * from #__content where xreference like '%$sel_venue%' and metadata like '%$findnumber%' and (catid=11 or catid=21 or catid=22) and state=1";
		$db->setQuery($sqlfindvenue);
		$rowitemidfindvenues = $db->loadObjectList();
    ?>
    	<div class="page-header">
            <h2><strong>
            	<?php echo JText::_('Recomended Venues');?></strong>
            </h2>
        </div>
    	<div class="datepublish"><?php echo JText::_('Click the venue for detail');?></div>
    	<div class="ui-tabs ui-widget ui-widget-content ui-corner-all" id="tabs">
            <ul role="tablist" class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
			<?php
            for($i=0;$i<count($rowitemidfindvenues);$i++){
            ?>
                <li aria-selected="true" aria-controls="tabs-<?php echo $i; ?>" class="ui-state-default ui-corner-top">
                    <a id="ui-id-<?php echo $i; ?>" class="ui-tabs-anchor" href="#tabs-<?php echo $i; ?>">
                        <?php echo $rowitemidfindvenues[$i]->title; ?>
                    </a>
                </li>
			<?php
			}
            ?>
            </ul>
			<?php
            for($i=0;$i<count($rowitemidfindvenues);$i++){
				$itemimg = $rowitemidfindvenues[$i]->images;
				$itemimg = explode('"image_intro":"',$itemimg);
				$itemimg = explode('","',$itemimg[1]);
				$itemimg = str_replace('\/','/',$itemimg[0]);
            ?>
                <div class="ui-tabs-panel" id="tabs-<?php echo $i; ?>">
                	<div class="itemimg"><img alt="<?php echo $rowitemidfindvenues[$i]->title; ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $rowitemidfindvenues[$i]->title; ?>" src="<?php echo $itemimg;?>" /></div>
                    <h2><strong>
                    <a href="index.php?option=com_content&view=article&id=<?php echo $rowitemidfindvenues[$i]->id?>&catid=<?php echo $rowitemidfindvenues[$i]->catid?>&Itemid=109">
						<?php echo $rowitemidfindvenues[$i]->title; ?>
                    </a></strong>
                    </h2>
                    <div class="itemcontent"><?php echo $rowitemidfindvenues[$i]->introtext.$rowitemidfindvenues[$i]->fulltext; ?></div>
                </div>
			<?php
			}
            ?>
        </div>
    </div>
</div>
<?php
}
else if($Itemid==108){
?>
<div class="item-page<?php echo $this->pageclass_sfx?> roomtemplate">
	<?php if ($this->params->get('show_page_heading', 1)) : ?>
	<div class="page_header catroom">
		<h1><strong> <?php echo $this->escape($this->params->get('page_heading')); ?> </strong></h1>
	</div>
	<?php endif;?>
	<div class="contentarticle about">
	<?php if ($params->get('show_title') || $params->get('show_author')) : ?>
	<div class="page-header">
		<h2><strong>
			<?php if ($params->get('show_title')) : ?>
				<?php if ($params->get('link_titles') && !empty($this->item->readmore_link)) : ?>
					<a href="<?php echo $this->item->readmore_link; ?>"> <?php echo $this->escape($this->item->title); ?></a>
				<?php else : ?>
					<?php echo $this->escape($this->item->title); ?>
				<?php endif; ?>
			<?php endif; ?></strong>
		</h2>
	</div>
	<?php endif; ?>
	<?php if (!$params->get('show_intro')) : echo $this->item->event->afterDisplayTitle; endif; ?>
	<?php echo $this->item->event->beforeDisplayContent; ?>

	<?php if (isset($urls) && ((!empty($urls->urls_position) && ($urls->urls_position == '0')) || ($params->get('urls_position') == '0' && empty($urls->urls_position)))
		|| (empty($urls->urls_position) && (!$params->get('urls_position')))) : ?>
	<?php echo $this->loadTemplate('links'); ?>
	<?php endif; ?>
	<?php if ($params->get('access-view')):?>
	<?php if (isset($images->image_fulltext) && !empty($images->image_fulltext)) : ?>
	<?php $imgfloat = (empty($images->float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?>
	<div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> 
    <img
	<?php if ($images->image_fulltext_caption):
		echo 'class="caption"'.' title="' .htmlspecialchars($images->image_fulltext_caption) . '"';
	endif; ?>
	src="<?php echo htmlspecialchars($images->image_fulltext); ?>" alt="<?php echo htmlspecialchars($images->image_fulltext_alt); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam"/> </div>
	<?php endif; ?>
	<?php
	if (!empty($this->item->pagination) && $this->item->pagination && !$this->item->paginationposition && !$this->item->paginationrelative):
		echo $this->item->pagination;
	endif;
	?>
	<?php if (isset ($this->item->toc)) :
		echo $this->item->toc;
	endif; ?>
	<?php echo $this->item->text;?>
	<?php elseif ($params->get('show_noauth') == true && $user->get('guest')) : ?>
	<?php echo $this->item->introtext; ?>
	<?php endif; ?>
    </div>
    <div class="rightcolumnroom restaurantsmodule">
		<?php
		$document = &JFactory::getDocument();
		$renderer   = $document->loadRenderer('modules');
		$position   = 'hotelinfo';
		$options   = array('style' => 'well');
		echo $renderer->render($position, $options, null);
		?>
		<?php
		$document = &JFactory::getDocument();
		$renderer   = $document->loadRenderer('modules');
		$position   = 'offersinfo';
		$options   = array('style' => 'well');
		echo $renderer->render($position, $options, null);
		?>
    </div>
</div>
<?php
}
else{
	$db = & JFactory::getDBO();
	$sqlidmenu="SELECT * from #__menu where id='".$Itemid."' and published=1";
	$db->setQuery($sqlidmenu);
	$rowidmenu = $db->loadObjectList();
	if(count($rowidmenu)>=1){
	
	?>
        <div class="item-page<?php echo $this->pageclass_sfx?> roomtemplate">
			<?php if ($this->params->get('show_page_heading', 1)) : ?>
            <div class="page_header catroom">
                <h1><strong> <?php echo $this->escape($this->params->get('page_heading')); ?> </strong></h1>
            </div>
            <?php endif;?>
            <div class="contentarticle about">
                <?php if (isset($images->image_intro) && !empty($images->image_intro)) :?>
                    <p class="imgintro" align="center"><img alt="<?php echo $this->escape($this->params->get('page_heading')); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam" title="<?php echo $this->escape($this->params->get('page_heading')); ?>" src="<?php echo $images->image_intro; ?>" /></p>
                <?php endif; ?>
            <?php
        if (!empty($this->item->pagination) && $this->item->pagination && !$this->item->paginationposition && $this->item->paginationrelative)
        {
            echo $this->item->pagination;
        }
        ?>
            <?php if (!$useDefList && $this->print) : ?>
                <div id="pop-print" class="btn hidden-print">
                    <?php echo JHtml::_('icon.print_screen', $this->item, $params); ?>
                </div>
                <div class="clearfix"> </div>
            <?php endif; ?>
            <?php if ($params->get('show_title') || $params->get('show_author')) : ?>
            <div class="page-header">
                <h2><strong>
                    <?php if ($params->get('show_title')) : ?>
                        <?php if ($params->get('link_titles') && !empty($this->item->readmore_link)) : ?>
                            <a href="<?php echo $this->item->readmore_link; ?>"> <?php echo $this->escape($this->item->title); ?></a>
                        <?php else : ?>
                            <?php echo $this->escape($this->item->title); ?>
                        <?php endif; ?>
                    <?php endif; ?></strong>
                </h2>
                <?php if ($this->item->state == 0) : ?>
                    <span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
                <?php endif; ?>
                <?php if (strtotime($this->item->publish_up) > strtotime(JFactory::getDate())) : ?>
                    <span class="label label-warning"><?php echo JText::_('JNOTPUBLISHEDYET'); ?></span>
                <?php endif; ?>
                <?php if ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != '0000-00-00 00:00:00') : ?>
                    <span class="label label-warning"><?php echo JText::_('JEXPIRED'); ?></span>
                <?php endif; ?>
            </div>
            <?php endif; ?>
            <?php if (!$this->print) : ?>
                <?php if ($canEdit || $params->get('show_print_icon') || $params->get('show_email_icon')) : ?>
                <div class="btn-group pull-right">
                    <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <span class="icon-cog"></span> <span class="caret"></span> </a>
                    <?php // Note the actions class is deprecated. Use dropdown-menu instead. ?>
                    <ul class="dropdown-menu actions">
                        <?php if ($params->get('show_print_icon')) : ?>
                        <li class="print-icon"> <?php echo JHtml::_('icon.print_popup', $this->item, $params); ?> </li>
                        <?php endif; ?>
                        <?php if ($params->get('show_email_icon')) : ?>
                        <li class="email-icon"> <?php echo JHtml::_('icon.email', $this->item, $params); ?> </li>
                        <?php endif; ?>
                        <?php if ($canEdit) : ?>
                        <li class="edit-icon"> <?php echo JHtml::_('icon.edit', $this->item, $params); ?> </li>
                        <?php endif; ?>
                    </ul>
                </div>
                <?php endif; ?>
            <?php else : ?>
                <?php if ($useDefList) : ?>
                    <div id="pop-print" class="btn hidden-print">
                        <?php echo JHtml::_('icon.print_screen', $this->item, $params); ?>
                    </div>
                <?php endif; ?>
            <?php endif; ?>
        
            <?php if ($useDefList && ($info == 0 || $info == 2)) : ?>
                <div class="article-info muted">
                    <dl class="article-info">
                    <dt class="article-info-term"><?php echo JText::_('COM_CONTENT_ARTICLE_INFO'); ?></dt>
                    
                    <?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
                    <dd class="createdby">
                        <?php $author = $this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author; ?>
                        <?php if (!empty($this->item->contact_link) && $params->get('link_author') == true) : ?>
                            <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', JHtml::_('link', $this->item->contact_link, $author)); ?>
                        <?php else: ?>
                            <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
                        <?php endif; ?>
                    </dd>
                    <?php endif; ?>
                    
                    <?php if ($params->get('show_parent_category') && !empty($this->item->parent_slug)) : ?>
                        <dd class="parent-category-name">
                            <?php $title = $this->escape($this->item->parent_title);
                            $url = '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->parent_slug)).'">'.$title.'</a>';?>
                            <?php if ($params->get('link_parent_category') && !empty($this->item->parent_slug)) : ?>
                                <?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
                            <?php else : ?>
                                <?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
                            <?php endif; ?>
                        </dd>
                    <?php endif; ?>
                    
                    <?php if ($params->get('show_category')) : ?>
                        <dd class="category-name">
                            <?php $title = $this->escape($this->item->category_title);
                            $url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug)) . '">' . $title . '</a>';?>
                            <?php if ($params->get('link_category') && $this->item->catslug) : ?>
                                <?php echo JText::sprintf('COM_CONTENT_CATEGORY', $url); ?>
                            <?php else : ?>
                                <?php echo JText::sprintf('COM_CONTENT_CATEGORY', $title); ?>
                            <?php endif; ?>
                        </dd>
                    <?php endif; ?>
        
                    <?php if ($params->get('show_publish_date')) : ?>
                        <dd class="published">
                            <span class="icon-calendar"></span> <?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
                        </dd>
                    <?php endif; ?>
        
                    <?php if ($info == 0) : ?>
                        <?php if ($params->get('show_modify_date')) : ?>
                            <dd class="modified">
                                <span class="icon-calendar"></span> <?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
                            </dd>
                        <?php endif; ?>
                        <?php if ($params->get('show_create_date')) : ?>
                            <dd class="create">
                                <span class="icon-calendar"></span> <?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3'))); ?>
                            </dd>
                        <?php endif; ?>
        
                        <?php if ($params->get('show_hits')) : ?>
                            <dd class="hits">
                                <span class="icon-eye-open"></span> <?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
                            </dd>
                        <?php endif; ?>
                    <?php endif; ?>
                    </dl>
                </div>
            <?php endif; ?>
        
            <?php if ($params->get('show_tags', 1) && !empty($this->item->tags)) : ?>
                <?php $this->item->tagLayout = new JLayoutFile('joomla.content.tags'); ?>
        
                <?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?>
            <?php endif; ?>
        
            <?php if (!$params->get('show_intro')) : echo $this->item->event->afterDisplayTitle; endif; ?>
            <?php echo $this->item->event->beforeDisplayContent; ?>
        
            <?php if (isset($urls) && ((!empty($urls->urls_position) && ($urls->urls_position == '0')) || ($params->get('urls_position') == '0' && empty($urls->urls_position)))
                || (empty($urls->urls_position) && (!$params->get('urls_position')))) : ?>
            <?php echo $this->loadTemplate('links'); ?>
            <?php endif; ?>
            <?php if ($params->get('access-view')):?>
            <?php if (isset($images->image_fulltext) && !empty($images->image_fulltext)) : ?>
            <?php $imgfloat = (empty($images->float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?>
            <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> 
            <img
            <?php if ($images->image_fulltext_caption):
                echo 'class="caption"'.' title="' .htmlspecialchars($images->image_fulltext_caption) . '"';
            endif; ?>
            src="<?php echo htmlspecialchars($images->image_fulltext); ?>" alt="<?php echo htmlspecialchars($images->image_fulltext_alt); ?> | Windsor Plaza Hotel | Ho Chi Minh City (Saigon), Vietnam"/> </div>
            <?php endif; ?>
            <?php
            if (!empty($this->item->pagination) && $this->item->pagination && !$this->item->paginationposition && !$this->item->paginationrelative):
                echo $this->item->pagination;
            endif;
            ?>
            <?php if (isset ($this->item->toc)) :
                echo $this->item->toc;
            endif; ?>
            <?php echo $this->item->text;?>
        
            <?php if ($useDefList && ($info == 1 || $info == 2)) : ?>
                <div class="article-info muted">
                    <dl class="article-info">
                    <dt class="article-info-term"><?php echo JText::_('COM_CONTENT_ARTICLE_INFO'); ?></dt>
        
                    <?php if ($info == 1) : ?>
                        <?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
                            <dd class="createdby">
                                <?php $author = $this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author; ?>
                                <?php if (!empty($this->item->contact_link) && $params->get('link_author') == true) : ?>
                                    <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', JHtml::_('link', $this->item->contact_link, $author)); ?>
                                <?php else: ?>
                                    <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
                                <?php endif; ?>
                            </dd>
                        <?php endif; ?>
                        <?php if ($params->get('show_parent_category') && !empty($this->item->parent_slug)) : ?>
                            <dd class="parent-category-name">
                                <?php	$title = $this->escape($this->item->parent_title);
                                $url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->parent_slug)) . '">' . $title . '</a>';?>
                                <?php if ($params->get('link_parent_category') && $this->item->parent_slug) : ?>
                                    <?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
                                <?php else : ?>
                                    <?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
                                <?php endif; ?>
                            </dd>
                        <?php endif; ?>
                        <?php if ($params->get('show_category')) : ?>
                            <dd class="category-name">
                                <?php 	$title = $this->escape($this->item->category_title);
                                $url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug)) . '">' . $title . '</a>';?>
                                <?php if ($params->get('link_category') && $this->item->catslug) : ?>
                                    <?php echo JText::sprintf('COM_CONTENT_CATEGORY', $url); ?>
                                <?php else : ?>
                                    <?php echo JText::sprintf('COM_CONTENT_CATEGORY', $title); ?>
                                <?php endif; ?>
                            </dd>
                        <?php endif; ?>
                        <?php if ($params->get('show_publish_date')) : ?>
                            <dd class="published">
                                <span class="icon-calendar"></span>
                                <?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
                            </dd>
                        <?php endif; ?>
                    <?php endif; ?>
        
                    <?php if ($params->get('show_create_date')) : ?>
                        <dd class="create">
                            <span class="icon-calendar"></span>
                            <?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3'))); ?>
                        </dd>
                    <?php endif; ?>
                    <?php if ($params->get('show_modify_date')) : ?>
                        <dd class="modified">
                            <span class="icon-calendar"></span>
                            <?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
                        </dd>
                    <?php endif; ?>
                    <?php if ($params->get('show_hits')) : ?>
                        <dd class="hits">
                            <span class="icon-eye-open"></span> <?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
                        </dd>
                    <?php endif; ?>
                    </dl>
                </div>
            <?php endif; ?>
        
            <?php
        if (!empty($this->item->pagination) && $this->item->pagination && $this->item->paginationposition && !$this->item->paginationrelative):
            echo $this->item->pagination;
        ?>
            <?php endif; ?>
            <?php if (isset($urls) && ((!empty($urls->urls_position) && ($urls->urls_position == '1')) || ($params->get('urls_position') == '1'))) : ?>
            <?php echo $this->loadTemplate('links'); ?>
            <?php endif; ?>
            <?php // Optional teaser intro text for guests ?>
            <?php elseif ($params->get('show_noauth') == true && $user->get('guest')) : ?>
            <?php echo $this->item->introtext; ?>
            <?php //Optional link to let them register to see the whole article. ?>
            <?php if ($params->get('show_readmore') && $this->item->fulltext != null) :
                $link1 = JRoute::_('index.php?option=com_users&view=login');
                $link = new JUri($link1);?>
            <p class="readmore">
                <a href="<?php echo $link; ?>">
                <?php $attribs = json_decode($this->item->attribs); ?>
                <?php
                if ($attribs->alternative_readmore == null) :
                    echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
                elseif ($readmore = $this->item->alternative_readmore) :
                    echo $readmore;
                    if ($params->get('show_readmore_title', 0) != 0) :
                        echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
                    endif;
                elseif ($params->get('show_readmore_title', 0) == 0) :
                    echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE');
                else :
                    echo JText::_('COM_CONTENT_READ_MORE');
                    echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
                endif; ?>
                </a>
            </p>
            <?php endif; ?>
            <?php endif; ?>
            <?php
        if (!empty($this->item->pagination) && $this->item->pagination && $this->item->paginationposition && $this->item->paginationrelative) :
            echo $this->item->pagination;
        ?>
            <?php endif; ?>
            <?php echo $this->item->event->afterDisplayContent; ?> 
            
            </div>
            <div class="rightcolumnroom restaurantsmodule">
                <?php
                $document = &JFactory::getDocument();
                $renderer   = $document->loadRenderer('modules');
                $position   = 'hotelinfo';
                $options   = array('style' => 'well');
                echo $renderer->render($position, $options, null);
                ?>
                <?php
                $document = &JFactory::getDocument();
                $renderer   = $document->loadRenderer('modules');
                $position   = 'offersinfo';
                $options   = array('style' => 'well');
                echo $renderer->render($position, $options, null);
                ?>
            </div>
        </div>
	<?php	
	}
	else{
	?>
    	<meta http-equiv="refresh" content="0; url=http://windsorplazahotel.com/index.php?option=com_content&view=article&id=71&Itemid=144" />
    <?php
	}
	
}
?>